package com.yanqu.road.entity.enums.activity.horserun;

public enum eHorseRunAttrEnum {

    energy("精力",1),
    artful("技巧",2),
    resistance("抗性",3)



    ;

    private String name;
    private int value;

    eHorseRunAttrEnum(String name, int value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public int getValue() {
        return value;
    }

    public static eHorseRunAttrEnum forValue(int value) {
        for (eHorseRunAttrEnum e : eHorseRunAttrEnum.values()) {
            if (e.getValue() == value) {
                return e;
            }
        }
        return null;
    }

}
